package com.example.job.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@TableName("tb_classroom")  // 指定类对应的数据库表名
@Getter
@Setter
@ToString
public class Classroom extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long classroomId;

    private String classroomName;

    // 开课时间
    private LocalDate startDate;

    // 班级类型
    private String classroomType;

    // 班级简介
    private String bio;

    private Integer status; // 0 未发布、 1 报名中、2 已开课、3 已结业
}
